//
//  KaiJiangFiveCell.m
//  HomeDemo
//
//  Created by liGordon on 17/3/30.
//  Copyright © 2017年 ZJNY. All rights reserved.
//

#import "KaiJiangFiveCell.h"

@implementation KaiJiangFiveCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.pushflag = 1;
    NSLog(@"%ld",(long)self.pushflag);
    if (self.pushflag == 1) {
        for(UIView *numView in self.NumView){
            numView.layer.cornerRadius = 15;
            numView.layer.masksToBounds = YES;
        }
        for(UILabel *numLabel in self.Numlabel){
            NSMutableArray* Valuearr=[NSMutableArray new];
            int counN=30;
            for(int i=0;i<counN;i++)
            {
                int value = arc4random() % 30;
                for(int j=0;j<Valuearr.count;j++)
                {
                    NSString* s=Valuearr[j];
                    while([s intValue]==value)                 {
                        value = arc4random() % 30;
                        j=-1;
                    }
                }
                [Valuearr addObject:[NSString stringWithFormat:@"%d",value]];
            }
            for (int i = 0; i<29; i++) {
                numLabel.text = [NSString stringWithFormat:@"%@",Valuearr[i]];
            }
            
            
        }

    }
    

   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
